package com.soa.zuul.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.cloud.netflix.zuul.RoutesRefreshedEvent;
import org.springframework.cloud.netflix.zuul.filters.RouteLocator;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 
 * 暂时直连，后期改成MQ方式
 * Created by zx on 2018/6/1.
 */
@FeignClient(value = "soa-log-proxy")
public interface FeignLogService {
	public final static Logger logger = LoggerFactory.getLogger(FeignLogService.class);
  
	@RequestMapping(value = "/log/writeLog")
	@Async
	public void writeLog(@RequestParam(value = "log") String log);
}
